const Service = require('egg').Service;

class flgUserService extends Service {

    //查询用户登录信息
    async loginUser(userinfo) {

        let queryString = 'select id,nickname,department_id,type,username from t_user where username = ? and password = ?'
        let params = [userinfo.username,userinfo.password];
        let result = await this.app.mysql.query(queryString, params);
        return result;
    }


}

module.exports = flgUserService;